package factory.abstractFactory;/** * Created by Administrator on 2018-10-22. */public class NYPizzaStore extends PizzaStore{    protected  NewPizza createPizza(String items) {        NewPizza pizza = null;        PizzaIngredientFactory pizzaIngredientFactory = new NYPizzaIngedientFactory();        if(items.equals("cheese")){            pizza = new CheesePizza(pizzaIngredientFactory);            pizza.setName("new york style cheese pizza");        }else if(items.equals("clam")){            pizza = new CheesePizza(pizzaIngredientFactory);            pizza.setName("new york style clam pizza");        }        return pizza;    }}